package com.coco.admin.service;

import com.coco.admin.pojo.TbAdmin;
import com.coco.admin.vo.LoginAdminVo;
import com.coco.common.result.CommonResponse;

/**
 * @author minicoco
 * @version 1.0
 * @date 2021/7/23 11:25
 */
public interface SysUserLoginService {

    /**
     * 用户登录
     * @param adminVo
     * @return
     */
    CommonResponse adminLogin(LoginAdminVo adminVo);

    /**
     * 获取登录用户信息
     * @param token
     * @return
     */
    TbAdmin findLoginUser(String token);

    CommonResponse logout(String token, String type);

}
